import { createRouter, createWebHistory } from 'vue-router';

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {path: '/login', component: ()=>import('./components/Admin.vue')},
    {path: '/home', component: ()=>import('./components/Home.vue')},
    {path: '/category', component: ()=>import('./components/Category.vue')},
    {path: '/register', component: ()=>import('./components/Register.vue')},
    {path: '/gamelist', component: ()=>import('./components/Gamelist.vue')},
    {path: '/', component: ()=>import('./components/Gamelist1.vue')},
    {path: '/profile', component: ()=>import('./components/Profile.vue')},
    {path: '/user', component: ()=>import('./components/user.vue')},
    {path: '/game/:id', component: ()=>import('./components/GamePlay.vue')},
    {path: '/upload', component: ()=>import('./components/UploadFile.vue')},
    {path: '/checkGames', component: ()=>import('./components/checkGames.vue')},
    {path: '/auditGames', component: ()=>import('./components/auditGames.vue')},
    {path: '/changeComments', component: ()=>import('./components/changeComments.vue')},
  ]
});

export default router;
